#ifndef TASK_H
#define TASK_H


struct Task
{
	int t;
	int m;
	int r;
	int q;
	int id;
	Task *next;
	Task *pred;
	Task():t(0),m(0),id(0),r(0),q(0),next(nullptr),pred(nullptr){}
	
	bool operator < (Task &v)
	{
		if(this->t == v.t)
			return (this->id > v.id);

		return (this->t < v.t);
	}

	bool operator > (Task &v)
	{
		if(this->t == v.t)
			return (this->id < v.id);

		return(this->t > v.t);
	}
};

#endif